package com.example.easybuy.pojo;

import org.springframework.stereotype.Component;

@Component
public class Collectionproducts {

    //收藏商品id
    private int id;
    //产品名称
    private String name;
    //产品描述
    private String describe;
    //产品价格
    private double price;
    //库存
    private int stock;
    //文件名
    private String fileName;
    //是否删除？1：删除，0：未删除
    private int isDelete;
    //登录用户id
    private int userId;
    //商品id
    private int productsId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getProductsId() {
        return productsId;
    }

    public void setProductsId(int productsId) {
        this.productsId = productsId;
    }

    @Override
    public String toString() {
        return "Collectionproducts{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", describe='" + describe + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                ", fileName='" + fileName + '\'' +
                ", isDelete=" + isDelete +
                ", userId=" + userId +
                ", productsId=" + productsId +
                '}';
    }
}
